package com.boe.csb.core.entity.po;

import java.io.Serializable;
import java.util.Date;

public class BoeApiPopular implements Serializable {
    private Long id;

    /**
     * csb服务id
     */
    private Long csbApiId;

    /**
     * 服务发布商用户id
     */
    private Long userId;

    /**
     * csb API的状态
     */
    private String status;

    /**
     * 被订阅的次数
     */
    private Integer subscribeCount;

    /**
     * 创建时间
     */
    private Date gmtCreate;

    /**
     * 更新时间
     */
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCsbApiId() {
        return csbApiId;
    }

    public void setCsbApiId(Long csbApiId) {
        this.csbApiId = csbApiId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Integer getSubscribeCount() {
        return subscribeCount;
    }

    public void setSubscribeCount(Integer subscribeCount) {
        this.subscribeCount = subscribeCount;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", csbApiId=").append(csbApiId);
        sb.append(", userId=").append(userId);
        sb.append(", status=").append(status);
        sb.append(", subscribeCount=").append(subscribeCount);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append("]");
        return sb.toString();
    }
}